# 使用原始字符串（推荐）
path = r'C:\new_folder\file.txt'
print(path)  # 输出: C:\new_folder\file.txt

# 使用双反斜杠

path = 'C:\\new_folder\\file.txt'
print(path)  # 输出: C:\new_folder\file.txt

# 使用正斜杠（Python中也能识别）
path = 'C:/new_folder/file.txt'
print(path)  # 输出: C:/new_folder/file.txt